<?php
require_once ('BaseController.class.php');
class ParticipanteController extends BaseController {
	public function indexGet() {
		$this->createModel ();
		$this->d ['footer'] ['mensaje'] = $this->model->getMensaje ();
		$this->d ['header'] ['usuario'] = $this->model->getUsuario ();
		$this->returnView ();
	}
	public function listarGet() {
		$this->createModel ();
		$this->d ['header'] ['usuario'] = $this->model->getUsuario ();
		$d ['nav'] = $this->getDatosNav ();
		$d ['mainView'] ['listaParticipantes'] = $this->model->getParticipantesTodos ();
		
		$this->returnView ( $d );
	}
	public function nuevoGet() {
		$this->createModel ();
		$this->d ['header'] ['usuario'] = $this->model->getUsuario ();
		$d ['nav'] = $this->getDatosNav ();
		
		$this->returnView ();
	}
	public function addPost() {
		$this->createModel ();
		$d ['nav'] = $this->getDatosNav();
		
		echo $this->model->getAdd();
	}
}

?>